package com.shlh.saas.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shlh.saas.entity.BusinessPopups;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BusinessPopupsMapper extends BaseMapper<BusinessPopups> {

    @Select("SELECT popup_title, popup_content_title, popup_content, popup_title_en, popup_content_title_en, popup_content_en, redirect_url FROM business_popups where status = #{status}")
    BusinessPopups selectPopups(@Param("status") Long status);
}
